package com.sky.mapper;

import com.sky.dto.ShoppingCartDTO;
import com.sky.entity.ShoppingCart;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.awt.*;
import java.util.List;

@Mapper
public interface ShoppingCartMapper {

    void addShoppingCart(ShoppingCart shoppingCart);

    void updateShopping(ShoppingCart shoppingCart);

    List<ShoppingCart> list(ShoppingCart shoppingCart);

    @Delete("delete from shopping_cart where user_id=#{userId}")
    void deleteShopping(Long currentId);


    void deleteShoppingCartById(ShoppingCart shoppingCartDTO);
}
